<?php

namespace App\Http\Controllers\Agent;

use App\Models\Admin\TnetReginfo;
use App\Http\Controllers\Controller;
//实例化request
use Illuminate\Http\Request;
//use App\Agent;

class IndexController extends CommonController {

	/**
	 * 首页
	 */
	public function index(Request $request){
		$info = array(
//			'操作系统' => PHP_OS,
//			'运行环境' => $_SERVER["SERVER_SOFTWARE"],
//			'PHP运行方式' => php_sapi_name(),
//			'PHP版本' => phpversion(),
//			'程序版本' => 'Laravel 5.4.9',
//			'上传附件限制' => ini_get('upload_max_filesize'),
//			'执行时间限制' => ini_get('max_execution_time') . "s",
//			'剩余空间' => round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M',
			'os' => PHP_OS,
			'envir' => $_SERVER["SERVER_SOFTWARE"],
			'phpmethod' => php_sapi_name(),
			'phpversion' => phpversion(),
			'proversion' => 'Laravel 5.4.9',
			'uploadlimt' => ini_get('upload_max_filesize'),
			'executelimt' => ini_get('max_execution_time') . "s",
			'room' => round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M',
		);

		return view('Agent.index.index',['data'=>$info]);
	}

}